package com.example.pluto.user.controller;

import com.example.pluto.common.models.Ret;
import com.example.pluto.user.service.PlutoUserService;
import com.example.pluto.user.service.impl.DoubleGameServiceImpl;
import com.example.pluto.user.service.impl.GameEntity;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.servlet.http.HttpServletResponse;
import java.util.List;

/**
 *@Author Mr.Yang
 *@Date 2024/12/10
 *@Description TODO
 */
@RestController
@RequestMapping(value = "/plutoUser")
@Slf4j
public class PlutoUserController {

    @Autowired
    private PlutoUserService plutoUserServiceImpl;

    @GetMapping("/savePlutoUser")
    public Ret savePlutoUser(HttpServletResponse response) throws Exception {
        plutoUserServiceImpl.savePlutoUser();
        return Ret.success();
    }

    @GetMapping("/saveEs")
    public Ret saveEs(HttpServletResponse response) throws Exception {
        plutoUserServiceImpl.saveEs();
        return Ret.success();
    }



}
